<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Insert title here</title>
</head>
<body>
	<h4 align="center">该商品库存为:${goods.quantity },所需数量为:${shopNum}</h4>
	<form:form modelAttribute="purchase" action="${pageContext.request.contextPath }/goods/addpurchase/${contractId }" method="post" 
	style="width: 15%; margin: auto">
		<form:hidden path="id"/>
		商品ID: <form:input path="goodsId" value="${goods.goodsId}" disabled="disabled"/><br>
		商品名: <form:input path="goodsName" value="${goods.goodsName}" disabled="disabled"/><br>
		进货数量: <form:input path="number" size="12"/><br>
		<input type="submit" value="生成进货单">
	</form:form>
</body>
</html>